﻿using System;
using System.Collections.Generic;
using System.Text;

namespace CodeWork.Chat
{
    class ChatMessage
    {
        private long _messageId;
        private DateTime _messageTime;
        private string _messageText;
        private string _messageSender;

        public long MessageId
        {
            get { return this._messageId; }
            set { this._messageId = value; }
        }

        public DateTime MessageTime
        {
            get { return this._messageTime; }
            set { this._messageTime = value; }
        }

        public string MessageText
        {
            get { return this._messageText; }
            set { this._messageText = value; }
        }

        public string MessageSender
        {
            get { return this._messageSender; }
            set { this._messageSender = value; }
        }

        public ChatMessage(long messageId, DateTime messageTime, string messageText, string messageSender)
        {
            MessageId = messageId;
            MessageSender = messageSender;
            MessageText = messageText;
            MessageTime = messageTime;
        }
    }
}
